﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace UsedBookTradeSystem.Migrations
{
    /// <inheritdoc />
    public partial class v108 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Address",
                table: "Users",
                type: "longtext",
                nullable: true,
                collation: "utf8_general_ci")
                .Annotation("MySql:CharSet", "utf8");

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "Address", "CreatedTime" },
                values: new object[] { null, new DateTime(2024, 4, 7, 16, 35, 15, 1, DateTimeKind.Local).AddTicks(651) });

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 2,
                columns: new[] { "Address", "CreatedTime" },
                values: new object[] { null, new DateTime(2024, 4, 7, 16, 35, 15, 1, DateTimeKind.Local).AddTicks(902) });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Address",
                table: "Users");

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                column: "CreatedTime",
                value: new DateTime(2024, 4, 5, 21, 32, 32, 555, DateTimeKind.Local).AddTicks(3796));

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 2,
                column: "CreatedTime",
                value: new DateTime(2024, 4, 5, 21, 32, 32, 555, DateTimeKind.Local).AddTicks(4137));
        }
    }
}
